package com.wzdigit.wms.basic.domain.mapping;

import com.baomidou.mybatisplus.annotation.*;
import com.wzdigit.framework.orm.model.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;

/**
 * <p>
 * 内外部系统代码映射表
 * </p>
 *
 * @author 
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("WMS_CODE_MAPPING")
@KeySequence(value = "WMS_CODE_MAPPING_SEQ", clazz = Integer.class)
public class CodeMapping extends BasicDomain {

    private static final long serialVersionUID = 1L;

    /**
     * CODE_MAPPING_ID
     */
    @TableId(value = "CODE_MAPPING_ID", type = IdType.INPUT)
    private BigDecimal codeMappingId;

    /**
     * 代码类别
     */
    @TableField("CODE_TYPE")
    private String codeType;

    /**
     * 映射系统
     */
    @TableField("MAPPING_SYSTEM")
    private String mappingSystem;

    /**
     * 映射代码
     */
    @TableField(value = "MAPPING_CODE",jdbcType = JdbcType.CHAR)
    private String mappingCode;

    /**
     * WMS代码
     */
    @TableField("WMS_CODE")
    private String wmsCode;

    /**
     * 工厂代码
     */
    @TableField("FAC_CODE")
    private String facCode;

    /**
     * 备注
     */
    @TableField("COMMENTS")
    private String comments;

    /**
     品质状态
    */
    @TableField("QA_STATUS")
    private Integer qaStatus;

}
